package com.wangfei.lecture.fanweiyunsuanfu;

import java.util.stream.Stream;

public class Test {
    public static void main(String[] args) {
        // invoking the of() method of the Stream class that returns a sequential
        // ordered stream
        Stream<String> st = Stream.of("San Jose", "Las Vegas", "Austin", "New York", "Denver", "Portland");
        // print the streams
        st.forEach(city -> System.out.println(city));
    }
}
